package Try;

import java.math.BigDecimal;

public class Main30 {
    public static void main(String[] args) {
        float a = 1.0F - 0.9F;
        float b = 0.9F - 0.8F;
        System.out.println(a);
        System.out.println(b);
        if (a == b){
            System.out.println("Same");
        }

        BigDecimal e = new BigDecimal("1.0");
        BigDecimal f = new BigDecimal("0.9");
        BigDecimal g = new BigDecimal("0.8");

        BigDecimal x = e.subtract(f);
        BigDecimal y = f.subtract(g);

        if (x.compareTo(y) == 0){
            System.out.println("Same");
        }
    }
}
